package com.dms.modules.product.service.impl;

import com.dms.modules.product.service.ProductRecommendationFacade;
import com.dms.modules.product.service.ProductRecommendationService;
import com.dms.modules.product.vo.ProductDetailVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 商品推荐外观实现类
 */
@Slf4j
@Service
public class ProductRecommendationFacadeImpl implements ProductRecommendationFacade {

    @Autowired
    private ProductRecommendationService recommendationService;

    @Override
    public List<ProductDetailVO> getPersonalizedRecommendations(Long userId, Integer limit) {
        return recommendationService.getPersonalizedRecommendations(userId, limit);
    }

    @Override
    public List<ProductDetailVO> getSimilarProducts(Long productId, Integer limit) {
        return recommendationService.getSimilarProducts(productId, limit);
    }

    @Override
    public List<ProductDetailVO> getHotProducts(Integer limit) {
        return recommendationService.getHotProducts(limit);
    }

    @Override
    public List<ProductDetailVO> getNewProducts(Integer limit) {
        return recommendationService.getNewProducts(limit);
    }
} 